package test;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Demo01Date {
    public static void main(String[] args) {
        Date date = new Date();
        Calendar calendar = Calendar.getInstance();
        calendar.set(2000, 8, 29);
        date = calendar.getTime();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        String format = simpleDateFormat.format(date);
        System.out.println(format);
    }
}
